package ru.sh.ui;

import ru.sh.screen.SHGameScreen;
import framework.GameResources;
import framework.GameScreen;
import framework.managers.TextureManager;
import framework.objects.hero.Hero;
import framework.objects.ui.UI;
import framework.objects.ui.buttons.CircleMultitouchButton;

public class MoveBtn extends CircleMultitouchButton {
	
	private Hero hero;
	
	public MoveBtn(GameScreen screen, UI ui, float x0, float y0) {
		super(screen, ui, x0, y0);
		hero = ((SHGameScreen)screen).getHero();
	}

	@Override
	protected void onDown() {
		hero.move();
	}

	@Override
	protected void onUp() {
		hero.look();
	}

	@Override
	protected void onOut() {
		hero.look();
	}

	@Override
	protected void initPresentation() {
		presentation = TextureManager.getTexture(GameResources.getBitmapName(7));
	}

	@Override
	protected void onOver() {
		// TODO Auto-generated method stub
		
	}

}
